﻿@using FL.SiteEntity;
@using FL.Common;
@using FL.Bussiness.Site;

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    //ViewBag.Title = "Home Page";
    BArticle BA = new BArticle();
    var list = BA.GetVArticleList(ViewBag.code, "", 20, ViewBag.pageindex);
    //BA.GetArticle
}
<div class="container containerRow">
    <div class="row" style="margin-top:40px;">
        <div class="col-md-12">
            <p class="News">最新资讯</p>
        </div>
    </div>
    <div class="row" style="margin-top:5px;">
        <div class="col-md-8" id="news_list" >
            <!--页面内容页的内容-->
            @{foreach(v_t_site_article article in list)
                  {
                    <div class="row NewsRow">
                        <div class="col-md-2 NewsDiv">
                            <p class="NewsYear">@article.add_time.Year</p>
                            <p>@article.add_time.Month-@article.add_time.Day</p>
                            <p class="clickRate">阅读 :<span>@article.read_count</span></p>
                        </div>
                        <div class="col-md-10">
                            <p class="NewsList"><a href="/Article/ArticleView?id=@article.id">@article.title</a></p>
                            <p class="NewsCont"><a href="/Article/ArticleView?id=@article.id">@article.zhaiyao</a></p>
                        </div>
                    </div>
                }
            }
            <!--页码-->
            <div class="row">
                <div class="col-md-12">
                    <div class="NewsPaging">
                        <ul class="pagination">
                            <li><a href="#">&laquo;</a></li>
                            <li><a href="#">首页</a></li>
                            <li><a href="#">1</a></li>
                            <li><a href="#">2</a></li>
                            <li><a href="#">3</a></li>
                            <li><a href="#">4</a></li>
                            <li><a href="#">5</a></li>
                            <li><a href="#">6</a></li>
                            <li><a href="#">7</a></li>
                            <li><a href="#">8</a></li>
                            <li><a href="#">9</a></li>
                            <li><a href="#">10</a></li>
                            <li><a href="#">尾页</a></li>
                            <li><a href="#">&raquo;</a></li>
                        </ul><br>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <!--外贸动态-->
            <div class="row Newbg">
                <a href="ForeignTradeAll.html">
                    <div class="col-md-10 col-md-offset-1 NewsLink">
                        <div>
                            <p class="NewsLinkImg"><img src="img/foreigntrade.png" class="" alt=""></p>
                            <p class="NewsLinkP">外贸动态</p>
                        </div>
                    </div>
                </a>
            </div>

            <!--报关知识-->
            <div class="row Newbg">
                <a href="CustomsDeclaration.html">
                    <div class="col-md-10 col-md-offset-1 NewsLink">
                        <div>
                            <p class="NewsLinkImg"><img src="img/customsdeclaration.png" class="" alt=""></p>
                            <p class="NewsLinkP">报关知识</p>
                        </div>
                    </div>
                </a>
            </div>
        </div>
    </div>
</div>

@*<div class="container">
    <div class="row">
        <div class="col-md-8">
            <div class="row">
                <div class="col-md-12">
                    <p class=" contentlist"><a href="">{$:article.title}</a></p>
                    <p class=" contentcent"><a href="">{$:article.zhaiyao}</a></p>
                    <p class=" contenticon">
                        <span class=" fl"><img src="/images/img/calendar.png" alt=""></span><span class=" spanmar">{$:article.add_time}</span>
                        <span class=" fl"><img src="/images/img/message.png" alt=""></span><span class=" spanmar">{$:article.review_count}人评论&nbsp;&nbsp;&nbsp;&nbsp;</span>
                        <span class=" fl"><img src="/images/img/eyes.png" alt=""></span><span class=" spanmar">{$:article.read_count}次浏览</span>
                    </p>
                </div>
                <hr>
            </div>

            <div class=" row">
                <div class="col-md-12">
                    <p class=" contentlist"><a href="">{$:article.title}</a></p>
                    <p class=" contentcent"><a href="">{$:article.zhaiyao}</a></p>
                    <p class=" contenticon">
                        <span class=" fl"><img src="/images/img/calendar.png" alt=""></span><span class="spanmar">{$:article.add_time}</span>
                        <span class=" fl"><img src="/images/img/message.png" alt=""></span><span class="spanmar">{$:article.review_count}人评论&nbsp;&nbsp;&nbsp;&nbsp;</span>
                        <span class=" fl"><img src="/images/img/eyes.png" alt=""></span><span class="spanmar">{$:article.read_count}次浏览</span>
                    </p>
                </div>
                <hr>
            </div>
        </div>
        <div class="col-md-4">E</div>
    </div>  
</div>*@